package com.itheima.study.dubbo.service.impl;

import com.itheima.study.dubbo.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
@Slf4j
public class UserServiceImpl implements UserService {

    @Override
    public boolean login(String username, String password) {
        log.info("{用户登录}username------->,password----------------->", username, password);
        //将用户名和密码固定写死为admin/1234
        return "admin".equals(username) && "1234".equals(password);
    }
}
